package el;

public class MetodyNaNapisach {
    public static String naDużeLitery(String x) {
        return x.toUpperCase();
    }

    public static int długość(String x) {
        return x.length();
    }

    public static int day(int M, int D, int Y) {
        int y = Y - (14 - M) / 12;
        int x = y + y / 4 - y / 100 + y / 400;
        int m = M + 12 * ((14 - M) / 12) - 2;
        int d = (D + x + (31 * m) / 12) % 7;
        return d;
    }
    
    public static boolean isLeapYear(int year) {
        if ((year % 4 == 0) && (year % 100 != 0)) return true;
        if (year % 400 == 0) return true;
        return false;
    }
}
